<template>
  <div>
    <van-nav-bar
      fixed
      placeholder
      safe-area-inset-top
      title="信息内容"
      left-arrow
      @click-left="back"
    />
    <div class="content">
      <div class="fword">{{ infocontent.title }}</div>
      <div class="sword">
        <span>发布：<span>{{ infocontent.time }}</span></span>
      </div>
      <div class="tword">
        {{ infocontent.content }}
      </div>
      <div class="btn"><van-button>处 理</van-button></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      infocontent: {
        title: '发布新房源成功',
        time: '2022-01-01 13:00',
        content: '恭喜您，发布房源成功'
      }
    }
  },
  methods: {
    back() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.content {
  margin: 0 15px;
  .fword {
    text-align: center;
    font-size: 15px;
    margin: 20px 0 10px;
  }
  .sword {
    color: #999;
    margin: 10px;
    height: 20px;
    display: flex;
    flex-direction: row-reverse;
    span {
      font-size: 12px;
    }
  }
  .tword {
    font-size: 14px;
    text-indent: 2em;
    line-height: 20px;
  }
  .btn {
    text-align: center;
    margin-top: 70px;
    .van-button {
      width: 85px;
      height: 35px;
      color: #fff;
      background-color: #45b7cb;
      border: none;
      border-radius: 5px;
    }
  }
}
</style>
